package com.ysccc.shares.enums;

import java.util.Arrays;

import lombok.Getter;

public enum Market {

	sh(0), sz(1);
	
	@Getter
	private int value;
	
	Market(int value) {
		this.value = value;
	}
	
	public static Market of(int value) {
		return Arrays.stream(Market.values()).filter(p -> p.value == value).findFirst().orElse(null);
	}
}
